package com.qimo.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Book {
    int bookId,typeId,pageNum;
    String bookName,ISBN,Publisher,Author,Content;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    Date publishDate;

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", typeId=" + typeId +
                ", pageNum=" + pageNum +
                ", bookName='" + bookName + '\'' +
                ", ISBN='" + ISBN + '\'' +
                ", Publisher='" + Publisher + '\'' +
                ", Author='" + Author + '\'' +
                ", Content='" + Content + '\'' +
                ", date=" + publishDate +
                '}';
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getISBN() {
        return ISBN;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    public String getPublisher() {
        return Publisher;
    }

    public void setPublisher(String publisher) {
        Publisher = publisher;
    }

    public String getAuthor() {
        return Author;
    }

    public void setAuthor(String author) {
        Author = author;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public String getContent() {
        return Content;
    }

    public void setContent(String content) {
        Content = content;
    }

}
